package com.cn.springcloudwechat.mapper.mapper.find.DelicateAskAnswer;

import com.cn.springcloudwechat.common.mybatis.Page;
import com.cn.springcloudwechat.model.find.DelicateAskAnswer.YmDelicateAskAnswer;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface YmDelicateAskAnswerMapper {
    int deleteByPrimaryKey(@Param("delicateMenuId") ArrayList<Long> delicateMenuId, @Param("state") int state);

    int insert(YmDelicateAskAnswer record);

    int insertSelective(YmDelicateAskAnswer record);

    YmDelicateAskAnswer selectByPrimaryKey(@Param("delicateMenuId") Long delicateMenuId,@Param("state") Integer state);

    ArrayList<YmDelicateAskAnswer> selectChildMenu();

    ArrayList<YmDelicateAskAnswer> selectParentMenu();

    ArrayList<Long>selectChildMenuByParentId(Long delicateParentId);

    int updateByPrimaryKeySelective(YmDelicateAskAnswer record);

    int updateByPrimaryKey(YmDelicateAskAnswer record);

    int updateMenu(YmDelicateAskAnswer record);

    ArrayList<Long> selectChildId(@Param("YmDelicateParentMenuId") Long YmDelicateParentMenuId,@Param("state") Integer state);

    ArrayList<YmDelicateAskAnswer> queryMenuAdmin(@Param("ymDelicateAskAnswer") YmDelicateAskAnswer ymDelicateAskAnswer,@Param("page") Page<YmDelicateAskAnswer> page);

    ArrayList<YmDelicateAskAnswer> queryChildMenuByParentId(Long parentId);

    ArrayList<YmDelicateAskAnswer> selectMenuList(@Param("MenuId") ArrayList<Long> MenuId,@Param("state") Integer state);

    ArrayList<YmDelicateAskAnswer> selectThreeMenuList();


}